package com.xiaomo.gitee.datamanager.aspect.log.anno;

import cn.hutool.core.annotation.AliasFor;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface SysLog {

    @AliasFor(attribute = "msg")
    String value() default "";

    @AliasFor(attribute = "value")
    String msg() default "";

    /**
     * user 用户
     * system 系统
     * @return
     */
    String operator() default "user";

    /**
     *  e.g. {'用户Id':'#{user.id}'}
     * @return msg
     */
    String extendMsg() default "{}";
}
